let arr=[1332802,1177178,1514891,871248,753214,123866,1615405,328656,1540395,968891,1884022,252932,1034406,1455178,821713,486232,860175,1896237,852300,566715,1285209,1845742,883142,259266,520911,1844960,218188,1528217,332380,261485,1111670,16920,1249664,1199799,1959818,1546744,1904944,51047,1176397,190970,48715,349690,673887,1648782,1010556,1165786,937247,986578,798663];
let a=arr.sort()[3-1];

let b=arr.sort((a,b)=>b-a); 


console.log(b.toString()==a.toString());
console.log(a);

//降序
arr.sort((a,b)=>b-a); 
//升序
arr.sort((a,b)=>a-b);